
import React from 'react'

 function NotFound() {
    return (
        <div>
            404 not found
        </div>
    )
}
// react-redux原理
 function huahuaconnect(callback,obj){
    // 接收到数据
    var value=callback()
    // MyComponent组件
    return (MyComponent)=>{
        return(props)=>{
            console.log(value,obj,props);
            // 通过父传子值
            return  <div style={{color:"red"}}><MyComponent {...value} {...props} {...obj}/></div>
            
        }
    }
}
export default huahuaconnect(()=>{
    return{
        a:1,b:2
    }
},{
    aa(){},
    bb(){}
})(NotFound)